<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>利用return返回数组</title>
    <script>
        /*function fn(num1,num2){
            return num1,num2;
        }
        console.log(fn(1,2));*/
        function getResult(num1,num2){
            return [num1 + num2, num1 - num2, num1 * num2, num1 / num2];
        }
        console.log(getResult(1,2));
    </script>
</head>
<body>

</body>
</html>